home *** CD-ROM | disk | FTP | other *** search
/ Programming in Microsoft Windows with C# / Programacion en Microsoft Windows con C#.iso / Codigo / Páginas y transformaciones / HundredPixelsSquare / HundredPixelsSquare.cs next >
Encoding:
Text File  |  2002-05-06  |  649 b   |  23 lines

  1. //--------------------------------------------------
  2. // HundredPixelsSquare.cs ⌐ 2001 by Charles Petzold
  3. //--------------------------------------------------
  4. using System;
  5. using System.Drawing;
  6. using System.Windows.Forms;
  7.  
  8. class HundredPixelsSquare: PrintableForm
  9. {
  10.      public new static void Main()
  11.      {
  12.           Application.Run(new HundredPixelsSquare());
  13.      }
  14.      public HundredPixelsSquare()
  15.      {
  16.           Text = "Cuadrado de cien pφxeles";
  17.      }
  18.      protected override void DoPage(Graphics grfx, Color clr, int cx, int cy)
  19.      {
  20.           grfx.FillRectangle(new SolidBrush(clr), 100, 100, 100, 100);
  21.      }
  22. }
  23.